package domain;

// Generated 29.Kas.2012 13:37:27 by Hibernate Tools 3.4.0.CR1

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.SEQUENCE;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * XmlProjectNodeDAO generated by hbm2java
 */
@Entity
@Table(name = "IBTOOLS_XML_PROJECT_NODE", schema = "T32556")
public class XmlProjectNodeDAO implements java.io.Serializable {

	private Long oid;
	private XmlNodeDAO xmlNode;
	private ProjectInfoDAO project;
	private Boolean status;

	public XmlProjectNodeDAO() {
	}

	public XmlProjectNodeDAO(XmlNodeDAO xmlNode, ProjectInfoDAO project,
			Boolean status) {
		this.xmlNode = xmlNode;
		this.project = project;
		this.status = status;
	}

	@SequenceGenerator(name = "generator")
	@Id
	@GeneratedValue(strategy = SEQUENCE, generator = "generator")
	@Column(name = "OID", unique = true, nullable = false, scale = 0)
	public Long getOid() {
		return this.oid;
	}

	public void setOid(Long oid) {
		this.oid = oid;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "XML_NODE_OID")
	public XmlNodeDAO getXmlNode() {
		return this.xmlNode;
	}

	public void setXmlNode(XmlNodeDAO xmlNode) {
		this.xmlNode = xmlNode;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "PROJECT_OID")
	public ProjectInfoDAO getProject() {
		return this.project;
	}

	public void setProject(ProjectInfoDAO project) {
		this.project = project;
	}

	@Column(name = "STATUS", precision = 1, scale = 0)
	public Boolean getStatus() {
		return this.status;
	}

	public void setStatus(Boolean status) {
		this.status = status;
	}

}
